<?php 
$lang = (string) $this->language;
echo $this->partial('supplier/_tab.phtml', array('row' => $this->row));
$this->headScript()->appendFile('/static/xheditor/xheditor-1.1.9-' . ($lang == 'zh_CN' ? 'zh-cn' : 'en') . '.min.js');
?>
<form action="" method="post" enctype="multipart/form-data">
<?php echo $this->form()->hidden('referer', $this->referer) . "\n";?>
<div class="body">
	<table class="form">
		<tr>
			<th colspan="2"><?php echo $this->language->load('Supplier Information:');?></th>
		</tr>
		<tr>
			<td width="180"><label><?php echo $this->language->load('Name');?></label></td>
			<td><?php echo $this->form()->text('name', $this->row->getName(), array('size' => '20', 'maxlength' => '20'));?><code><?php echo $this->language->load('Between 1~20 characters and construct by [a-zA-Z0-9_-]');?>.</code></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Company Name');?></label></td>
			<td><?php echo $this->form()->text('title', $this->row->getTitle(), array('size' => '50', 'maxlength' => '100'));?><code><?php echo $this->language->load('Between 1~100 characters');?>.</code></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Corporation');?></label></td>
			<td><?php echo $this->form()->text('corporation', $this->row->getCorporation(), array('size' => '30', 'maxlength' => '50'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Licence');?></label></td>
			<td><?php echo $this->form()->text('licence', $this->row->getLicence(), array('size' => '30', 'maxlength' => '50'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Website');?></label></td>
			<td><?php echo $this->form()->text('website', $this->row->getWebsite(), array('size' => '50', 'maxlength' => '250'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Image');?></label></td>
			<td><?php echo $this->partial('include/_uploadImageInput.phtml', array('image' => $this->row->getLogo(), 'name' => 'thumb'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Actived');?>?</label></td>
			<td><select name="is_active"><?php 
				echo '<option value="1"' . ($this->row->getIsActive() == 1 ? ' selected="selected"' : '') . '>' . $this->language->load('Yes') . '</option>';
				echo '<option value="0"' . ($this->row->getIsActive() == 0 ? ' selected="selected"' : '') . '>' . $this->language->load('No') . '</option>';
			?></select></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Description');?></label></td>
			<td><?php echo $this->form()->textarea('description', $this->row->getDescription(), array('class' => 'xheditor', 'style' => 'width:95%;height:280px;'));?></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<button type="submit" value="submit" name="submit"><?php echo $this->language->load('Submit');?></button>
				<?php if($this->row->getId()) echo $this->render('include/deleteButton.phtml');?>
			</td>
		</tr>
	</table>
</div>
</form>
